package com.wujilee.mqdelaytask.service.inform.impl;

import com.wujilee.mqdelaytask.mq.entity.Task;
import com.wujilee.mqdelaytask.service.inform.InformService;
import com.wujilee.mqdelaytask.service.inform.SendTaskService;
import org.springframework.context.annotation.Configuration;

import javax.annotation.Resource;

/**
 * @author liwuji
 * @date 2024/5/31
 * @desc
 **/
@Configuration
public class SendTaskServiceImpl  implements SendTaskService {
    @Resource
    private InformService informService;
    @Override
    public void sendTask(Task task) {
        InformService service = informService.getInformService();
        service.sendTask(task);
    }
}
